package top.imyzt.entity;

import com.baomidou.mybatisplus.enums.IdType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiParam;

import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author imyzt
 * @since 2018-01-05
 */

@ApiModel(value = "user", description = "用户")
public class TUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiParam(hidden = true)
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	private String uname;
	private String pwd;
	private Integer age;

	public TUser(Integer id) {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	@Override
	public String toString() {
		return "TUser{" +
			"id=" + id +
			", uname=" + uname +
			", pwd=" + pwd +
			", age=" + age +
			"}";
	}
}
